/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* E.P. Scene Graph Lua
* Developed by:
*       - Eduardo Ribeiro (eribeiro @ tecgraf . puc-rio . br)
*       - Peter Dam (peter @ tecgraf . puc-rio . br)
* File: Global.h
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef _EPSGLUA_GLOBAL_
#define _EPSGLUA_GLOBAL_

extern "C"
{
#include "lua.h"
#include "lauxlib.h"
}

#include "luabind/luabind.hpp"

namespace EPSGLua
{
	class Global
	{
	public:
		static Global*		instance();
		lua_State*			getLuaState();

	private:
		/* [CONSTRUCTOR] */	Global();
		/* [DESTRUCTOR] */	~Global();

		static Global*		s_instance;
		static lua_State*	s_luaState;
	};
}

#endif //_EPSGLUA_GLOBAL_